<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
 <div>
  <RouterLink to="/">首页</RouterLink>
  <RouterLink to="/demo1">demo1</RouterLink>
  <RouterLink to="/newview">新闻页面</RouterLink>
  <RouterLink to="/long">登录页面</RouterLink>
 </div>
  <RouterView />
</template>

<style scoped>
a{
  margin-right: 20px;
}
</style>
